﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Content;
using Imaginecup.sprite;
using Imaginecup.shareData;
using Imaginecup.util.resourceMan;
using Microsoft.Xna.Framework.Graphics;
using Imaginecup.util;
using Microsoft.Xna.Framework;

namespace Imaginecup.gameState.ending.scene.kindOfNormal
{
    public class FadeSpriteLoad:IFadeLoadContent
    {
        private FadeHelper m_FadeHelper;
        private Color m_FadeColor;

        public FadeSpriteLoad(Color fadeColor)
        {
            m_FadeHelper = new FadeHelper();
            m_FadeColor = fadeColor;
        }

        public ISprite LoadSprite()
        {
            FadeSprite fadeSprite = new FadeSprite();
            fadeSprite.SetFadeColor( m_FadeColor) ;
            fadeSprite.SetColorClass( m_FadeHelper );
            return fadeSprite;
        }
        
        public void UnloadResource()
        {
        }

        public FadeHelper LoadFadeHelper()
        {
            return m_FadeHelper;
        }
    }
}
